package com.blb.edusearchservice.feign;

import com.blb.common.entity.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 调用课程服务的接口
 */
@FeignClient("edu-course-service")
public interface CourseServiceFeignClient {

    /**
     * 查所有课程
     * @return
     */
    @GetMapping("/courses")
    List<Course> getAllCourses();
}
